import env from "../../build/env";

let baseurl = {
  ip: '192.168.1.71',
  prefix: 'http://192.168.1.71:38080',
  port: '38080',
  url: 'http://192.168.1.71:38080/bk/v1/f',
  fgstart: 'http://192.168.1.71'
};

if (env === 'development') {
  baseurl = {
    ip: '192.168.1.71',
    prefix: 'http://192.168.1.71:38080',
    port: '38080',
    url: 'http://192.168.1.71:38080/bk/v1/f',
    fgstart: 'http://192.168.1.71'
  };
} else if (env === 'devlocal') {
  baseurl = {
    ip: 'localhost',
    prefix: 'http://localhost:18080',
    port: '18080',
    url: 'http://localhost:18080/bk/v1/f',
    fgstart: 'http://localhost'
  };
} else if (env === 'production') {
  baseurl = {
    ip: 'www.taxmall.cn',
    prefix: 'http://www.taxmall.cn:28080',
    port: '28080',
    url: 'http://www.taxmall.cn:28080/bk/v1/f',
    fgstart: 'http://www.taxmall.cn'
  };
}

export default baseurl;
